home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Shareware
/
Programare
/
sharp
/
wwwSharp_setup.exe
/
{app}
/
Examples
/
Config
/
index.hta
< prev
next >
Wrap
Text File
|
2003-12-24
|
2KB
|
39 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>www-Sharp.ClrHost Hello .Net demo</TITLE>
<META name="GENERATOR" content="MSHTML 6.00.2800.1264">
<META http-equiv="MSThemeCompatible" content="Yes">
<!-- AppDomain represents .Net application domain. To specify parameters,
this object should be placed before other objects.-->
<OBJECT id="AppDomain" classid="clsid:89F1D07D-3AC6-4ACB-B8A4-8EDDDCB0142E">
<PARAM name="PrivateBinPath" value="bin">
<PARAM name="ConfigurationFile" value="myconfig.config">
</OBJECT>
<!-- ClrInstance object. AssemblyName and TypeName parameters are required.
AssemblyName - preferrably should be full assembly name (with version, key, culture),
TypeName - full type name (with namespace).
Other parameters will be set to correspond object public properties (not fields).
-->
<OBJECT id="objTest" classid="clsid:4CC2B254-F4C7-4F52-881E-C2E10B14E003">
<PARAM name="AssemblyName" value="Config">
<PARAM name="TypeName" value="wwwSharp.ClrHost.Examples.Config">
</OBJECT>
<SCRIPT language="JScript">
function OnBtnConfigClick()
{
//All object properties will be mapped except ToString. There is one
//additional property - Instance that represents real .Net object.
//If you need to pass .Net object to script functions, use objTest.Instance.
//ToString method could be called as objTest.Instance.ToString
//(because Instance is default property, objTest.ToString works too).
pOutput.innerText = objTest.GetConfigValue("Application Name");
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON id="btnConfig" onclick="OnBtnConfigClick()">Application name:</BUTTON>
<P id="pOutput"></P>
</BODY>
</HTML>